﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace TKWCFService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IOrderService" in both code and config file together.
    [ServiceContract]
    public interface IOrderService
    {
        [OperationContract]
        Result[] OrderStatistics();
    }

    // Use a data contract as illustrated in the sample below to add composite types to service operations
    [DataContract]
    public class Result
    {
        string _countryName;
        decimal _total = 0;

        [DataMember]
        public string CountryName
        {
            get { return _countryName; }
            set { _countryName = value; }
        }

        [DataMember]
        public decimal Total
        {
            get { return _total; }
            set { _total = value; }
        }
    }
}
